package com.indigon.turing.model.hex
{
	import com.indigon.turing.model.Model;

	public class Hex
	{
		private var _model : Model;
		
		public var orbit : uint;
		public var slot  : uint;

		public var isWall : Boolean;
		public var isVP   : Boolean;
		
		public var player : uint = Model.EMPTY_PLAYER;
		public var value  : uint = Model.NO_FILL;
		
		public var env : Vector.<Hex> = new Vector.<Hex>(6);
		
		public function Hex(orbit:uint, slot:uint, model:Model)
		{
			this._model = model;
			this.orbit = orbit;
			this.slot  = slot;
		}
		
		public function uninit():void
		{
			env = null;
			_model = null;
		}
		
		public function get isBlocking():Boolean
		{
			return (!isWall && !isVP);
		}
	}
}